package com.lmq.Adapter;

import java.io.InputStream;
import java.io.InputStreamReader;

public class Computer {
    public void net(NetToUsb adapter){

        //上网的实现，找个转接头
        adapter.handleRequest();



    }

    public static void main(String[] args) {
        Computer computer = new Computer();
        Adaptee adaptee = new Adaptee();//网线
//        Adapter adapter = new Adapter();//转接器
        Adapter2 adapter = new Adapter2(adaptee);//转接器


        computer.net(adapter);



    }
}
